#include <stdafx.h>

#include <DataLoader.h>

int main(int argc, char *argv[])
{
	int testresult = 0;
	char output[80];
	Eigen::MatrixXd *m = NULL;
	for (int i = 1; i < argc; ++i) {
		output[0] = 0;
		strcat(output, argv[i]);
		strcat(output, ".out.txt");
		m = DataLoader::loadMatrix(argv[i]);
		testresult = DataLoader::saveMatrix(m, output);
		delete m;
		if (testresult)
			return testresult;
	}
	return testresult;
}